<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

trait HasKeyField
{
    /**
     * key 的字段名
     * @param string|JsExp $keyField
     * @return $this
     */
    public function keyField(string|JsExp $keyField = 'key'): static
    {
        return $this->prop("key-field", $keyField);
    }

}
